<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<%@include file="../../inc/common.inc"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="${ contextPath }/me/img/modifyImg.js" type="text/javascript"></script>
<title>修改图片</title>
</head>

<body>
		<div id="container_father">
			<div id="container_left">
				&nbsp;
			</div>
			<div id="container">

				<div id="top">
				</div>

				<div id="navigation">
					<%@include file="../common/headMenu.jsp"%>
				</div>

				<div id="content">
					<div class="content_block">
						<div class="content_title">
							类型
						</div>
						<div class="clear"></div>
						<div class="content_content">
							<form action="${contextPath}/bk/updateImgtype.action" method="post"
								id="artForm">
								<input type="hidden" name="imgtype.id"
									value="${ imgtype.id }" />
								<div class="content_row">
									<div class="title">
										类型名称
									</div>
									<div class="data">
										<input type="text"  name="imgtype.name"
											value="${ imgtype.name }" />
										&nbsp;
									</div>
									<div class="tip" id="tip"></div>
								</div>
								<div class="content_row">
									<div class="title">
										父节点
									</div>
									<div class="data">
										<select name="imgtype.parId" >
											<option value="0" >根节点</option>
											<c:forEach var="type_" items="${ imgtypeList }"  >
												<c:choose>
													<c:when test="${ type_.id eq type.parId }" >
														<option value="${ type_.id }" selected >${ type_.name }</option>
													</c:when>
													<c:otherwise>
														<option value="${ type_.id }" >${ type_.name }</option>
													</c:otherwise>
												</c:choose>
											</c:forEach>
										</select>
										&nbsp;
									</div>
									<div class="tip" id="tip"></div>
								</div>
								<div>
									<input type="button" value="提交" id="choose" />
									<input type="button" value="取消" id="cancel" />
								</div>
							</form>
						</div>
						<div class="clear"></div>
					</div>
				</div>
				<div id="sidebar">
					<%@include file="../common/sidebar.jsp"%>
				</div>
				<div class="clear"></div>
				<div id="footer">
					<%@include file="../common/foot.jsp"%>
				</div>

			</div>
			<div id="container_right">
				&nbsp;
			</div>
		</div>
	</body>


</html>

